package com.csit.dao;

import java.util.Date;
import java.util.Map;

import com.csit.bean.Pager;
import com.csit.entity.Buy;
import com.csit.entity.BuyDetail;

public interface BuyDetailDao extends BaseDao<BuyDetail, Integer> {
	
	/**
	 * 
	 * @Description: 查询采购单列表
	 * @param
	 * @Create: 2012-10-31 下午09:39:32
	 * @author longweier
	 * @update logs
	 * @param pager
	 * @param buy
	 * @param beginDate
	 * @param endDate
	 * @return
	 * @return
	 * @throws Exception
	 */
	public Pager queryBuyDetail(Pager pager,Buy buy,Date beginDate,Date endDate);
	
	/**
	 * 
	 * @Description: 获取当前采购单下最大的位置
	 * @param
	 * @Create: 2012-10-31 下午09:39:36
	 * @author longweier
	 * @update logs
	 * @param buy
	 * @return
	 * @return
	 * @throws Exception
	 */
	public Integer getMaxPostion(Buy buy);
	
	/**
	 * 
	 * @Description:  汇总查询 
	 * @param
	 * @Create: 2012-11-1 下午08:24:59
	 * @author longweier
	 * @update logs
	 * @param pager
	 * @param buy
	 * @param buyDetail
	 * @param beginDate
	 * @param endDate
	 * @return
	 * @return
	 * @throws Exception
	 */
	public Pager queryBuyDetail(Pager pager,Buy buy,BuyDetail buyDetail,Date beginDate,Date endDate);
	
	/**
	 * 
	 * @Description: 查询统计
	 * @param
	 * @Create: 2012-11-1 下午08:26:00
	 * @author longweier
	 * @update logs
	 * @param buy
	 * @param buyDetail
	 * @param beginDate
	 * @param endDate
	 * @return
	 * @return
	 * @throws Exception
	 */
	public Map<String,Double> queryTotal(Buy buy,BuyDetail buyDetail,Date beginDate,Date endDate);
	
}
